package com.ws.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 临时表，用于存储sm秘钥
 * </p>
 *
 * @author zheng
 * @since 2020-07-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sssfm_dc_ws_unify_sm")
@ApiModel(value="SssfmDcWsUnifySm对象", description="临时表，用于存储sm秘钥")
public class SssfmDcWsUnifySm extends Model<SssfmDcWsUnifySm> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "session id")
    @TableId
    private String sid;

    @ApiModelProperty(value = "秘钥")
    @TableField("smCode")
    private String smCode;

    private String appid;


    @Override
    protected Serializable pkVal() {
        return this.sid;
    }

}
